﻿using SqlSugar;
using System;
using System.Data;

namespace tlBasic.Core
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("cts_User", "用户表", IsDisabledUpdateAll = true)]
    public class cts_User: DEntityTenant
    {
               
        /// <summary>
        /// 账号
        /// </summary>
         [SugarColumn(ColumnDescription = "账号")]
        public string Account { get; set; }
        /// <summary>
        /// 密码加盐
        /// </summary>
        [SugarColumn(ColumnDescription = "密码")]
        public string PwdSalt { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码")]
        public string Password { get; set; }
                
        /// <summary>
        /// 姓名
        /// </summary>
         [SugarColumn(ColumnDescription = "姓名")]
        public string Name { get; set; }


        /// <summary>
        /// 性别1.男 2.女
        /// </summary>
        [SugarColumn(ColumnDescription = "性别")]
        public int Sex { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [SugarColumn(ColumnDescription = "联系方式")]
        public string Phone { get; set; }

  
 

        /// <summary>
        /// 角色Id
        /// </summary>
        [SugarColumn(ColumnDescription = "角色Id")]
        public long RoleId { get; set; }
         
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public UserType UserType { get; set; }




        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnDescription = "状态")]
        public StatusEnum Status { get; set; }


        [SugarColumn(IsIgnore = true)]
        public string StatusName => Status.GetDescription();


        [SugarColumn(IsIgnore = true)]
        public string RoleName { get; set; }



    }
}